from pydantic import BaseModel
from typing import Optional


class TaskSchema(BaseModel):  # 没使用到??
    id: int
    name: str
    completed: bool = False


class NewTaskSchema(BaseModel):
    name: str
    completed: bool = False


class UpdateTaskSchema(BaseModel):
    name: Optional[str] = None
    completed: Optional[str] = False
